Optimal. Leaf size=133 \[ -\frac {2 \sqrt {d+e x}}{(c d f-a e g) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {2 \sqrt {g} \tan ^{-1}\left (\frac {\sqrt {g} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {c d f-a e g} \sqrt {d+e x}}\right )}{(c d f-a e g)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {882, 888, 211}
\begin {gather*} -\frac {2 \sqrt {g} \text {ArcTan}\left (\frac {\sqrt {g} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{\sqrt {d+e x} \sqrt {c d f-a e g}}\right )}{(c d f-a e g)^{3/2}}-\frac {2 \sqrt {d+e x}}{\sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2} (c d f-a e g)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 882
Rule 888
Rubi steps
\begin {align*} \int \frac {(d+e x)^{3/2}}{(f+g x) \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}} \, dx &=-\frac {2 \sqrt {d+e x}}{(c d f-a e g) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {g \int \frac {\sqrt {d+e x}}{(f+g x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{c d f-a e g}\\ &=-\frac {2 \sqrt {d+e x}}{(c d f-a e g) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {\left (2 e^2 g\right ) \text {Subst}\left (\int \frac {1}{-e \left (c d^2+a e^2\right ) g+c d e (e f+d g)+e^2 g x^2} \, dx,x,\frac {\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {d+e x}}\right )}{c d f-a e g}\\ &=-\frac {2 \sqrt {d+e x}}{(c d f-a e g) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {2 \sqrt {g} \tan ^{-1}\left (\frac {\sqrt {g} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{\sqrt {c d f-a e g} \sqrt {d+e x}}\right )}{(c d f-a e g)^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 109, normalized size = 0.82 \begin {gather*} -\frac {2 \sqrt {d+e x} \left (\sqrt {c d f-a e g}+\sqrt {g} \sqrt {a e+c d x} \tan ^{-1}\left (\frac {\sqrt {g} \sqrt {a e+c d x}}{\sqrt {c d f-a e g}}\right )\right )}{(c d f-a e g)^{3/2} \sqrt {(a e+c d x) (d+e x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 118, normalized size = 0.89
method | result | size |
default | \(-\frac {2 \sqrt {\left (c d x +a e \right ) \left (e x +d \right )}\, \left (g \arctanh \left (\frac {g \sqrt {c d x +a e}}{\sqrt {\left (a e g -c d f \right ) g}}\right ) \sqrt {c d x +a e}-\sqrt {\left (a e g -c d f \right ) g}\right )}{\sqrt {e x +d}\, \left (c d x +a e \right ) \left (a e g -c d f \right ) \sqrt {\left (a e g -c d f \right ) g}}\) | \(118\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 257 vs.
\(2 (124) = 248\).
time = 2.74, size = 555, normalized size = 4.17 \begin {gather*} \left [-\frac {{\left (c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e\right )} \sqrt {-\frac {g}{c d f - a g e}} \log \left (-\frac {c d^{2} g x - c d^{2} f + 2 \, a g x e^{2} + 2 \, \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} {\left (c d f - a g e\right )} \sqrt {x e + d} \sqrt {-\frac {g}{c d f - a g e}} + {\left (c d g x^{2} - c d f x + 2 \, a d g\right )} e}{d g x + d f + {\left (g x^{2} + f x\right )} e}\right ) + 2 \, \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} \sqrt {x e + d}}{c^{2} d^{3} f x - a^{2} g x e^{3} - {\left (a c d g x^{2} - a c d f x + a^{2} d g\right )} e^{2} + {\left (c^{2} d^{2} f x^{2} - a c d^{2} g x + a c d^{2} f\right )} e}, -\frac {2 \, {\left ({\left (c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e\right )} \sqrt {\frac {g}{c d f - a g e}} \arctan \left (-\frac {\sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} {\left (c d f - a g e\right )} \sqrt {x e + d} \sqrt {\frac {g}{c d f - a g e}}}{c d^{2} g x + a g x e^{2} + {\left (c d g x^{2} + a d g\right )} e}\right ) + \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} \sqrt {x e + d}\right )}}{c^{2} d^{3} f x - a^{2} g x e^{3} - {\left (a c d g x^{2} - a c d f x + a^{2} d g\right )} e^{2} + {\left (c^{2} d^{2} f x^{2} - a c d^{2} g x + a c d^{2} f\right )} e}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 276 vs.
\(2 (124) = 248\).
time = 2.42, size = 276, normalized size = 2.08 \begin {gather*} -2 \, {\left (\frac {g \arctan \left (\frac {\sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} g e^{\left (-1\right )}}{\sqrt {c d f g - a g^{2} e}}\right ) e^{\left (-1\right )}}{\sqrt {c d f g - a g^{2} e} {\left (c d f - a g e\right )}} + \frac {1}{\sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} {\left (c d f - a g e\right )}}\right )} e + \frac {2 \, {\left (\sqrt {-c d^{2} e + a e^{3}} g \arctan \left (\frac {\sqrt {-c d^{2} e + a e^{3}} g e^{\left (-1\right )}}{\sqrt {c d f g - a g^{2} e}}\right ) + \sqrt {c d f g - a g^{2} e} e\right )}}{\sqrt {c d f g - a g^{2} e} \sqrt {-c d^{2} e + a e^{3}} c d f - \sqrt {c d f g - a g^{2} e} \sqrt {-c d^{2} e + a e^{3}} a g e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^{3/2}}{\left (f+g\,x\right )\,{\left (c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________